![]() 06/30/2019 at 15:33 • Filed to: None | ![]() | ![]() |
So I wrote that little script that picks a random car (weighting the Opponess of the car). My question is the easiest way to distribute it to y’all, so that it’ll as easy as possible for y’all to run and play with . It uses an external library Beautiful S oup, which I don’t know how you’d install on Windows, since I just did one command on linux to install it. A nd it also prints out a link to the winner in terminal, which could be a PITA for windows users. Although some googling shows that in windows 10 you can now copy and paste from command prompt.
Basically what would be the easiest way for me to share it that would allow windows users to run it with the least amount of effort?
Pic is another car it chose.
I told you it was good.
Link
!!! UNKNOWN CONTENT TYPE !!!
![]() 06/30/2019 at 15:51 |
|
I’d say a PDF...
Python script, you say?
Sorry - feeling a little goofy right now...
![]() 06/30/2019 at 17:49 |
|
You should look into packaging your script
into a PIP package, that way installing on Windows would be as simple as on Linux.
The Windows command prompt has had copy
/paste functionality since the early versions of NT at least, BTW.
![]() 06/30/2019 at 18:04 |
|
Rewrite it into a proper language? :P joke aside, a rewrite or package into something accessible as a website is hands down the easiest in my opinion.
![]() 06/30/2019 at 18:18 |
|
Perhaps you could package it up for Github?
![]() 06/30/2019 at 18:39 |
|
I’m not doing Javascript again , maybe PHP or something? I’ll give the PIP thing a try.
![]() 06/30/2019 at 20:55 |
|
I think finding a way to expose this as a website would work better than having people install it locally. In my limited experience with web programming, I have Flask library in Python is good for making a basic web frontend for a Python codebase when you're not in the mood for JavaScript.
![]() 06/30/2019 at 23:57 |
|
I’ll try and give that a shot if I have the time.
![]() 07/01/2019 at 10:08 |
|
PHP sure, it’s my go-to for programming something quickly since i’m used to dealing with that, but need to learn to do JS things for dynamic stuff/interactions
![]() 07/02/2019 at 22:34 |
|
Definitely the website approach, Firebase maybe for easy hosting. It worked for bag of dicks , it’ll work for you